package com.prothink.threadproject.service;

import com.prothink.threadproject.entity.FormLogin;
import com.prothink.threadproject.entity.User;
import com.prothink.threadproject.vo.AccountForm;
import com.prothink.threadproject.vo.ForgetPwdVo;
import com.prothink.threadproject.vo.UserInfoVo;

import java.util.List;

public interface UserService  {
    // 可以在这里定义额外的业务方法
    public int updateUserPassword(Long id, String newPassword);

    public int createUser(User user);
    // 模糊查询用户
    public List<User> searchUsers(String name);

    public int deleteUserById(Long id);
    public int updateUser(User user);
    public User getUserById(Long id);
    public List<User> getAllUsers();
    // 登录方法
    public void registUser(AccountForm accountForm);
    // 登录方法：根据用户名和密码进行登录
    UserInfoVo login(AccountForm accountForm);
    public FormLogin getUserByName(String account);

    void resetPwd(ForgetPwdVo forgetPwdVo);

    int updateForm(FormLogin formLogin);
}
